﻿using System.IO;
using Outlook = Microsoft.Office.Interop.Outlook;

namespace System
{
    public class OutLook : System
    {
        public void DoWork()
        {
            AyThread.Instance.RunNew(() =>
            {
                Outlook.Application app = new Outlook.Application();
                Outlook.NameSpace name = app.Session;
                Outlook.MAPIFolder inbox = name.PickFolder();
            });
        }

        public string GetImagePath()
        {
            const string relativePath = @".\img\system\outlook.png";
            return Path.GetFullPath(relativePath);
        }

        public string GetName()
        {
            return "邮件";
        }
    }
}
